<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        #app{
            width: 600px;
            margin: 50px auto;
        }
        #app .border{
            width: 300px;
            height: 300px;
            border: solid 2px yellow;
        }
        #app .shadow{
            box-shadow: 0 0 10px #888888;
        }
        #app .backcolor{
            background-color: #6715ff;
        }
        #app .hover{
            transition: all 1s 0s;
        }
        #app .hover:hover{
            width: 200px;
            height: 200px;
            background-color: #ff0000;
            transition: all 1s 0s;
        }
    </style>
</head>
<body>
    <div id="app">
        <p>
            <input type="checkbox" v-model="isBorder">边框
            <input type="checkbox" v-model="isShadow">阴影
            <input type="checkbox" v-model="isBackColor">背景
            <input type="checkbox" v-model="isHovor">动画
        </p>
        <div v-bind:class="{
            border:isBorder,
            shadow:isShadow,
            backcolor:isBackcolor,
            hover:isHover
        }">
        </div>
    </div>
</body>
<script src="/js/vue.js"></script>
<script>
    var vm = new Vue({
        el:"#app",
        data:{
            isBorder:true,
            isShadow:true,
            isBackColor:true,
            isHovor:true
        }
    })
</script>
</html>